export default {
  data() {
    return {
      // 默认的全局分享内容
      shareData: {
        title: '',
        path: '',
        imageUrl: '',
        content: '',
        desc: ''
      }
    }
  },
  //#ifdef MP-WEIXIN
  // 朋友圈
  onShareAppMessage() {
    return {
      title: this.shareData.title,
      path: this.shareData.path,
      imageUrl: this.shareData.imageUrl,
      content: this.shareData.content,
      desc: this.shareData.desc,
      success: res => {
        console.info(res)
      }
    }
  },
  // 朋友圈
  onShareTimeline(res) {
    return {
      title: this.shareData.title,
      path: this.shareData.path,
      imageUrl: this.shareData.imageUrl,
      content: this.shareData.content,
      desc: this.shareData.desc,
      success: res => {
        console.info(res)
      }
    }
  },

  //#endif
}